﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KaytechSoftware.Cms.Entities.Interfaces
{
    public interface IUnitOfWorkService
    {
        IUnitOfWork Create();
        IUnitOfWork GetCurrentUnitOfWork();
        void Release(IUnitOfWork unitOfWork);
        void RegisterRepository(IUnitOfWork unitOfWork, IUnitOfWorkHolder repository);
        void UnregisterRepository(IUnitOfWork unitOfWork, IUnitOfWorkHolder repository);
    }
}
